package com.yankelin.construction.service;

import com.yankelin.construction.dao.WorkerDao;
import com.yankelin.construction.pojo.Pager;
import com.yankelin.construction.pojo.Worker;

public class WorkerService {
	
	private WorkerDao workerDao;
	
	public Pager<Worker> findPage(Pager<Worker> pager){
		return workerDao.findPage(pager);
	}

	
	//geter seter
	
	public WorkerDao getWorkerDao() {
		return workerDao;
	}
	
	public void setWorkerDao(WorkerDao workerDao) {
		this.workerDao = workerDao;
	}


	public int findCount(String columnName) {
		
		return workerDao.findCount(columnName);
	}
	

}
